
<?php include './application/views/common/header.php'; ?>
<script type="text/javascript" src="/static/js/My97DatePicker/WdatePicker.js"></script>
<table width="90%" cellspacing="0" cellpadding="0" border="0" class="user_table">
	<tr>
		<td valign="top" class="user_table_td"><?php include './application/views/common/user_left.php'; ?></td>
		<!-- Left End -->
		<td valign="top">
		<div class="user_list_title">
		  <ul>
			 <?php include './application/views/common/user_sub_left.php'; ?>
		  </ul>
		</div>
		<!-- User_List_Title End -->
		<div class="user_list_con">
		<!-- 
		<p style="text-align:left;border:1px solid #FFCF88;background: #FFFDEC;line-height:25px;padding-left:10px;">
		成功投资总额：<?php echo number_format($tender_money_count,2);?>
		</p>
		 -->
		<!-- User_List_Search End -->
		
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr bgcolor="#F3F3F3" height="40px">
			<td align="center"><strong>标题</strong></td>
			<td align="center"><strong>投标金额</strong></td>
			<td align="center"><strong><?php if ($state==1){echo '预计还款时间';}elseif ($state==3){echo '实际还款时间';}else{echo '投标时间';} ?></strong></td>
			<td align="center"><strong>年利率</strong></td>
			<td align="center"><strong>期限</strong></td>
			<td align="center"><strong>应收本息</strong></td>
			<td align="center"><strong>应收利息</strong></td>
			<td align="center"><strong>协议书</strong></td>
		  </tr>
		  <?php foreach($list as $tender){?>
		  <tr height="35px">
			<td align="center"><a href="/borrow/obj/<?php echo $tender['yjb_id'];?>.html"><?php echo $tender['title'];?></a></td>
			<td align="center"><?php echo $tender['account'];?></td>
			<td align="center"><?php if ($state==1){echo  date('Y-m-d H:i:s',$tender['repay_time']);}elseif ($state==3){echo  date('Y-m-d H:i:s',$tender['repay_yestime']);}else{ echo date('Y-m-d H:i:s',$tender['add_time']);}?></td>
			<td align="center"><?php echo $tender['apr'];?> %</td>
			<td align="center"><?php echo $tender['time_limit_day'];?>天</td>
			<td align="center">&yen;<?php echo number_format($tender['repayment_account'],2);?>元</td>
			<td align="center">&yen;<?php echo number_format($tender['interest'],2);?>元</td>
			<td align="center"><a target="_blank" href="/borrow/slprotocol/<?php echo $tender['yjb_id'];?>/<?php echo $tender['id'];?>.html">协议书</a></td>
		  </tr>
		  <?php }?>
		  <tr>
		  	<td align="center" colspan="8" class="page"><?php echo $this->pagination->create_links();?></td>
		  </tr>
		</table>

		</div>
		<!-- User_List_Con End -->
		</td>
	</tr>
</table>
<?php include './application/views/common/footer.php'; ?>